package com.xinyue.ext.data;

import java.util.List;

public class FieldData {
	/**属性名称*/
	private String name;
	/**属性类型*/
	private String type;
	/**Column注解*/
	private String ann_column;
	/**瞬时字段*/
	private boolean ann_transient;
	/**ID注解类型*/
	private List<String> ann_id;
	/**详细描述信息*/
	private String desc;

	
	/**数据库字段名称*/
	private String dbName;
	/**自定义数据字段类型：要求数据库支持*/
	private String definition;
	/**unique：是否唯一*/
	private boolean unique;
	/**是否可为空*/
	private boolean nullable;
	/**长度*/
	private String length;
	/**是否自增主键*/
	private boolean auto_key;
	
	//getter setter
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getAnn_column() {
		return ann_column;
	}
	public void setAnn_column(String ann_column) {
		this.ann_column = ann_column;
	}
	public boolean isAnn_transient() {
		return ann_transient;
	}
	public void setAnn_transient(boolean ann_transient) {
		this.ann_transient = ann_transient;
	}
	public List<String> getAnn_id() {
		return ann_id;
	}
	public void setAnn_id(List<String> ann_id) {
		this.ann_id = ann_id;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public boolean isUnique() {
		return unique;
	}
	public void setUnique(boolean unique) {
		this.unique = unique;
	}
	public boolean isNullable() {
		return nullable;
	}
	public void setNullable(boolean nullable) {
		this.nullable = nullable;
	}
	public String getLength() {
		return length;
	}
	public void setLength(String length) {
		this.length = length;
	}
	public boolean isAuto_key() {
		return auto_key;
	}
	public void setAuto_key(boolean auto_key) {
		this.auto_key = auto_key;
	}
	public String getDefinition() {
		return definition;
	}
	public void setDefinition(String definition) {
		this.definition = definition;
	}
	public String getDbName() {
		return dbName;
	}
	public void setDbName(String dbName) {
		this.dbName = dbName;
	}
}
